<?php

class MatchMode{
	function getAllMatchModes($select="*", $hideInactive=true){
		$DB = new DB();
		$con = $DB->conDB();
		$ret = array();
		if($hideInactive){
			$where = "WHERE Active = 1";
		}
		else{
			$where = "";
		}
			
		$sql = "SELECT ".$select."
				FROM MatchMode
				".$where."
						";
		$ret = $DB->multiSelect($sql);
			
		return $ret;
	}

	function insertNewMatchMode($matchMode){
		$ret = array();
		$DB = new DB();
		$con = $DB->conDB();
		$ret['debug'] .= "Start insertNewMatchMode <br>\n";
		if($matchMode != ""){
			
			
			$ret['status'] = true;
		}
		else{
			$ret['status'] = "matchMode = ''";
		}

		$ret['debug'] .= "End insertNewMatchMode <br>\n";

		return $ret;
	}
}

?>
